package com.ydlclass.consumer.fegin;

import com.ydlclass.consumer.domain.Goods;
import org.springframework.stereotype.Component;

@Component
public class GoodsFeignCallback implements GoodsFeign{
    @Override
    public Goods findById(Integer id) {
        Goods goods=new Goods();
        goods.setGoodId(-1);
        goods.setTitle("consumer提供方降级");
        goods.setPrice(-9.999);
        goods.setStock(-100);
        return goods;
    }
}
